using System;
using System.Threading;
using System.ComponentModel;
using Gtk;

namespace MonsterNetWindows
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Application.Init ();
			
			MNBusyWindow busyWindow = new MNBusyWindow ();
			WindowPosition busyPos = new Gtk.WindowPosition ();
			
			busyWindow.SetPosition (busyPos);
			busyWindow.Show ();
			busyWindow.Message = "Loading";
			busyWindow.Pulse ();
			
			MNMainWindow win = new MNMainWindow (busyWindow);
			win.Show ();
			BackgroundWorker loader = new BackgroundWorker ();
			loader.DoWork += new DoWorkEventHandler (delegate {
				win.LoadController ();
			});
			loader.RunWorkerAsync ();
		
			Application.Run ();
		}
	}
}

